﻿using ARPaintServer.Model.Artwork;
using ARPaintServer.Model.OTD;

namespace ARPaintServer.Services
{
	public interface IArtworkService
	{
		/// <summary>
		/// 查询作品信息列表
		/// </summary>
		/// <param name="amount"></param>
		/// <returns></returns>
		Task<List<ArtworkInfo>> GetArtworkInfoAsync(int amount);

		/// <summary>
		/// 查询作者作品信息
		/// </summary>
		/// <param name="author"></param>
		/// <returns></returns>
		Task<List<ArtworkInfo>> GetArtworkInfoFromAuthorAsync(string author,int amount);

		/// <summary>
		/// 使用ID查询作品完整信息
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		Task<Artwork> GetArtworkFromIDAsync(string id);

		/// <summary>
		/// 保存模型
		/// </summary>
		/// <param name="artwork"></param>
		/// <returns></returns>
		Task SaveArtworkAsync(Artwork artwork);

	}
}
